/**
 * @Description:
 * @author 云离
 * @date: 2018/12/30
 */
import {combineReducers} from 'redux'
import {persistReducer} from 'redux-persist';
import storage from 'redux-persist/lib/storage'

import {reducer as globalState} from './system'
import {reducer as main } from './main'
export default combineReducers({
    globalState: persistReducer({
        key: 'globalState',
        storage: storage
    }, globalState),
    main: persistReducer({
        key: 'main',
        storage: storage
    }, main)
})


